package com.jinmdz.app.dao.dao;

import com.jinmdz.app.dao.dao.provider.CoffinProvider;
import com.jinmdz.app.dao.model.coffin.CoffinConfirmItem;
import com.jinmdz.app.dao.model.coffin.CoffinItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

/**
 * 纸棺dao
 *
 * @author JiYanJiang
 * @date 2020-08-24 15:24
 */
public interface CoffinDao {
    /**
     * 根据业务编码获得纸棺信息
     *
     * @param businessCode
     * @param businessType
     * @return com.jinmdz.app.dao.model.coffin.CoffinItem
     * @author JiYanJiang
     * @date 2020-08-25 13:37
     */
    @SelectProvider(type = CoffinProvider.class, method = "getCoffinByBusinessCode")
    CoffinItem getCoffinByBusinessCode(@Param("businessCode") String businessCode, @Param("businessType") String businessType);

    /**
     * 根据业务编码从 CoffinConfirm表获得 确认装棺信息
     *
     * @param businessCode
     * @return com.jinmdz.app.dao.model.coffin.CoffinConfirmItem
     * @author JiYanJiang
     * @date 2020-08-25 13:37
     */
    @SelectProvider(type = CoffinProvider.class, method = "getCoffinConfirmByBusinessCode")
    CoffinConfirmItem getCoffinConfirmByBusinessCode(String businessCode);
}
